home *** CD-ROM | disk | FTP | other *** search
/ Freelog 22 / freelog 22.iso / Prog / Djgpp / GPC2952B.ZIP / doc / gpc / docdemos / and_thendemo.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  2001-02-09  |  183 b   |  10 lines

  1. program And_ThenDemo;
  2. var
  3.   p: ^Integer;
  4. begin
  5.   New (p);
  6.   ReadLn (p^);
  7.   if (p <> nil) and_then (p^ < 42) then  { This is safe. }
  8.     WriteLn (p^, ' is less than 42')
  9. end.
  10.